from socket import *

yourhostname=input('connect to:')

me=socket(AF_INET,SOCK_STREAM)
me.connect((yourhostname,12345))

while True:
    print(me.recv(10).decode('ASCII'))
    me.send(input().encode('ASCII'))
    print(me.recv(10).decode('ASCII'))
